package com.todo.content.iface.backend;


import com.todo.common.common.entity.response.BizPageResponse;
import com.todo.common.common.entity.response.BizResponse;
import com.todo.content.iface.backend.request.*;
import com.todo.content.iface.backend.response.ContentBaseInfoResp;
import com.todo.content.iface.backend.response.ContentDetailResp;

/**
 * @author zhangwenxiang
 * @date 2024/3/14 20:38
 * @description
 */
public interface ContentBackendIface {

    /**
     * 根据主键id删除内容
     *
     * @param req
     * @return
     */
    BizResponse<Boolean> removeContentById(RemoveContentByIdReq req);

    /**
     * 根据主键id查询内容详情
     *
     * @param req
     * @return
     */
    BizResponse<ContentDetailResp> queryContentDetailById(QueryContentDetailByIdReq req);

    /**
     * 禁用内容
     *
     * @param req
     * @return
     */
    BizResponse<Boolean> disableContentById(DisableContentByIdReq req);

    /**
     * 多条件查询内容基础信息
     *
     * @param req
     * @return
     */
    BizPageResponse<ContentBaseInfoResp> queryContentInfoByCondition(QueryContentInfoByConditionReq req);

    /**
     * 人工检测内容是否合法
     *
     * @param request
     * @return
     */
    BizResponse<Boolean> detectionContentById(DetectionContentReq request);
}
